package com.qhy.springcloud.dao;

import com.qhy.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author qiuhongyu
 * @date 2020/12/7 14:59
 */
@Mapper
public interface OrderMapper {

    //1新建订单
    void create(Order order);

    //2 修改订单状态从0改成1
    void update(@Param("userId") Long userId, @Param("status") Integer status);

}
